package no.sachmuld.methodcombination.examples.reflection.designbycontract.courier;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {

        Main.class.getClassLoader().setDefaultAssertionStatus(true);

        Courier[] couriers = {
                new Courier(),
                new CourierWithBetterService()
        };

        for (Courier courier : couriers) {
            Delivery delivery = courier.deliver(new Package(1));
            System.out.println(delivery);
        }

    }

    public static void main(String... args) {

        new Main().run();

    }

}
